package homework9;

import java.util.Scanner;

//所得税输入类
public class IncomeTex {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.print("请输入员工的姓名:");
        String name=input.next();
        System.out.print("请输入基本工资:");
        double salary=input.nextDouble();
        System.out.print("请输入加班补贴:");
        double subsidy=input.nextDouble();

        Employee weilei=new Employee();
        weilei.name=name;
        weilei.salary=salary;
        weilei.subsidy=subsidy;

        double money=weilei.calcIncomncomeTxa();

        System.out.println(name+"每月净收入是："+money);

    }

}
